home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / string / stpcpy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-09  |  354 b   |  16 lines

  1. #include <string.h>
  2.  
  3. /**************************************************************************/
  4.  
  5. char *(stpcpy)(char *Dest, const char *Source)
  6.  
  7. {
  8. #if defined(__GNUC__) && defined(__OPTIMIZE__)
  9.   return __inlined_stpcpy(Dest,Source);
  10. #else
  11.   while ((*Dest++=*Source++))
  12.     ;
  13.   return Dest-1;
  14. #endif  /* defined(__GNUC__) && defined(__OPTIMIZE__) */
  15. }
  16.